<?php
/**
 * Created by Yury Patrin.
 * Time: 23.09.13 20:27
 */

class Object_Da_Rubric
{
    public $id;
    public $title;
    public $parentId = 0;
    public $sort;

    public function setId($id)
    {
        $this->id = (int)$id;
    }

    public function setTitle($title)
    {
        $this->title = (string)$title;
    }

    public function setParentId($parentId)
    {
        $this->parentId = (int)$parentId;
    }

    public function setSort($sort)
    {
        $this->sort = (int)$sort;
    }
}

class Object_Da_Document
{
    public $id;
    public $title;
    public $rubricId;
    public $sort;

    public function setId($id)
    {
        $this->id = (int)$id;
    }

    public function setTitle($title)
    {
        $this->title = (string)$title;
    }

    public function setRubricId($id)
    {
        $this->rubricId = (int)$id;
    }

    public function setSort($sort)
    {
        $this->sort = (int)$sort;
    }
}